This archive contains the scripts and data needed to reproduce all of the tables and figures in the following article:

Jablonski, Ryan S. ⓡ Buntaine, Mark T. ⓡ Nielson, Daniel L. ⓡ Pickering, Paula M. 2021. Individualized text messages about public services fail to sway voters: Evidence from a field experiment on Ugandan elections. Journal of Experimental Political Science.

The archive is organized to be "one-click" reproducible by downloading the entire archive into a single directory and then opening and executing the code in `JEPS_replication.Rmd`.

The files in the directory are as follows (in alphabetical order):

analysis_chunks_pap_spec.csv: this is a dataframe containing the regression specifications for the results reported in Figure S8.

analysis_chunks-hte.csv: this is a dataframe containing the regression specifications used to test for heterogenous treatment effects. It is preserved for convenience, but not directly used in the replication script.

analysis_chunks.csv: this is a dataframe containing the regression specifications used to test direct treatment effects.

analysis_data.csv: this is the compiled, main dataset used for all analyses in the article and Supporting Information file.

analysis_metadata.csv: this is a dataframe describing every variable in `analysis_data.csv`.

JEPS_replication.html: this is the RMarkdown html output from the main replication script `JEPS_replication.Rmd`. It directly outputs all tables and figures reported in the main text and Supporting Information file to confirm reproducibility.

JEPS_replication.Rmd: this is the script file in RMarkdown format that reproduces all tables and figures in the main text and Supporting Information file.

lc3_chair_vote_shares.csv: this is a data file showing election returns from both the endline survey in the study and official returns from the Electoral Commission for the LC3 Chair, used to produce Figure S6.

lc3_councillor_vote_shares.csv: this is a data file showing election returns from both the endline survey in the study and official returns from the Electoral Commission for the LC3 Councillor, used to produce Figure S6.

lc5_chair_vote_shares.csv: this is a data file showing election returns from both the endline survey in the study and official returns from the Electoral Commission for the LC5 Chair, used to produce Figure S6.

lc5_councillor_vote_shares.csv: this is a data file showing election returns from both the endline survey in the study and official returns from the Electoral Commission for the LC3 Councillor, used to produce Figure S6.

PS_RI.csv: this is a dataframe that contains 10,000 randomization draws from the procedure used to assign treatment. It is used to conduct randomization inference for direct treatment effects in Figure 1.

ri_out_direct.rds: This is an R datafile that contains the output of the randomization inference code chunk in `JEPS_replication.Rmd`. Because the randomization inference code chunk takes approximately 1-2 days to compile on a standard desktop machine, this output is preserved for quick reference and use to confirm "one-click" reproducibility.

ri_out_hte.rds: This is an R datafile that contains the output of the randomization inference code chunk in `JEPS_replication.Rmd`. Because the randomization inference code chunk takes approximately 1-2 days to compile on a standard desktop machine, this output is preserved for quick reference and use to confirm "one-click" reproducibility. Note that this object is NOT USED to produce tables and figures, but is preserved for convenience.

sms_experience_survey.xlsx: This dataset contains the results of a post-experiment survey with recipients of messages used to understand respondent experiences with the treatment. It is used to produce Figure S4.

